package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DzCwmxMapper;
import com.ruoyi.system.domain.DzCwmx;
import com.ruoyi.system.service.IDzCwmxService;


import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.system.service.ISysRoleService;
import com.ruoyi.system.mapper.DzHuiyuanMapper;
import com.ruoyi.system.domain.DzHuiyuan;
import com.ruoyi.system.service.IDzHuiyuanService;

/**
 * 车位明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-15
 */
@Service
public class DzCwmxServiceImpl implements IDzCwmxService 
{
    @Autowired
    private DzCwmxMapper dzCwmxMapper;

    @Autowired
    private ISysRoleService sysRoleService;

    @Autowired
    private IDzHuiyuanService dzHuiyuanService;

    /**
     * 查询车位明细
     * 
     * @param mxId 车位明细主键
     * @return 车位明细
     */
    @Override
    public DzCwmx selectDzCwmxByMxId(Long mxId)
    {
        return dzCwmxMapper.selectDzCwmxByMxId(mxId);
    }

    /**
     * 查询车位明细列表
     * 
     * @param dzCwmx 车位明细
     * @return 车位明细
     */
    @Override
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<DzCwmx> selectDzCwmxList(DzCwmx dzCwmx)
    {

        return dzCwmxMapper.selectDzCwmxList(dzCwmx);
    }

    @Override
    public List<DzCwmx> selectDzCwmxListWeb(DzCwmx dzCwmx)
    {
        return dzCwmxMapper.selectDzCwmxList(dzCwmx);
    }

    /**
     * 新增车位明细
     * 
     * @param dzCwmx 车位明细
     * @return 结果
     */
    @Override
    public int insertDzCwmx(DzCwmx dzCwmx)
    {
        return dzCwmxMapper.insertDzCwmx(dzCwmx);
    }

    /**
     * 修改车位明细
     * 
     * @param dzCwmx 车位明细
     * @return 结果
     */
    @Override
    public int updateDzCwmx(DzCwmx dzCwmx)
    {
        return dzCwmxMapper.updateDzCwmx(dzCwmx);
    }

    /**
     * 批量删除车位明细
     * 
     * @param mxIds 需要删除的车位明细主键
     * @return 结果
     */
    @Override
    public int deleteDzCwmxByMxIds(Long[] mxIds)
    {
        return dzCwmxMapper.deleteDzCwmxByMxIds(mxIds);
    }

    /**
     * 删除车位明细信息
     * 
     * @param mxId 车位明细主键
     * @return 结果
     */
    @Override
    public int deleteDzCwmxByMxId(Long mxId)
    {
        return dzCwmxMapper.deleteDzCwmxByMxId(mxId);
    }
}
